package org.smog.core.validation;

import org.smog.core.validation.impl.NotNullAndEmptyValidatorImpl;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 组合验证 不为空不为null
 *
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-16 11:44
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {NotNullAndEmptyValidatorImpl.class}
)
public @interface NotNullAndEmpty {

    String message() default "不可为Null或空";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
